﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgFichaAmbiental.aspx.cs" Inherits="EGuayas.Web.Licenciamiento.promotor.tabs.pgFichaAmbiental" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link  href="~/Resources/css/Style.css"  rel="stylesheet" />
    <!-- Load Ext JS --> 
    <script src="../../../Resources/js/Global.js"></script>
   
</head>
<body>  
    <form id="Form1" runat="server"> 
        <ext:ResourceManager ID="pgIdCategManager" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
            <Items>
                <ext:FormPanel ID="FormPanel1" runat="server" Region="Center" Layout="VBoxLayout" >
                        <LayoutConfig>
                                <ext:VBoxLayoutConfig Align="Stretch" />
                        </LayoutConfig>
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                   <ext:ToolbarFill />
                                    <ext:Button ID="ShowTab1" runat="server" Text="Mostrar Documentos" Disabled="true" Icon="PageWhiteStack">
                                        <Listeners>
                                            <Click Handler="#{TabPanel1}.addTab(#{Tab1},0);this.setDisabled(true);" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:Button ID="ShowTab3" runat="server" Text="Mostrar Informes"  Icon="FolderPage">
                                        <Listeners>
                                            <Click Handler="#{TabPanel1}.addTab(#{Tab3},1);this.setDisabled(true);" />
                                        </Listeners>
                                    </ext:Button>
                             </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Items>
                             <%--::Archivos Promotor--%> 
                             <ext:TabPanel ID="TabPanel1" runat="server"  Flex="1"  TabPosition="Left">
                             <Items>
                                <ext:Panel ID="Tab1" Title="Documentos" runat="server" Closable="true" CloseAction="Hide"  Icon="PageWhiteStack"  Layout="Fit">
                                    <Items>
                                        <ext:UserControlLoader ID="uc_loaddoc_p005"  UserControlID="wuc_loaddoc_tdr_p005"  runat="server" Path="~/Licenciamiento/promotor/tabs/wucLoadDoc.ascx" OnComponentAdded="OnLoadDocTdrAdded" />        
                                    </Items>
                                     <Listeners>
                                        <Close Handler="#{ShowTab1}.setDisabled(false);" />
                                    </Listeners>
                                </ext:Panel>
                                
                                <ext:Panel ID="Tab3" Title="Informes" runat="server" Closable="true" CloseAction="Hide"  Icon="FolderPage"  Layout="Fit">
                                        <Items>
                                            <ext:UserControlLoader ID="uc_read_info_01" UserControlID="wuc_read_info_p001"  runat="server" Path="~/Licenciamiento/promotor/tabs/wucReadInfo.ascx" OnComponentAdded="OnLoadDocTdrAdded" />                                                     
                                        </Items>
                                        <Listeners>
                                                <Close Handler="#{ShowTab3}.setDisabled(false);" />
                                         </Listeners>
                                </ext:Panel>  
                             </Items>
                              <Bin></Bin>                         
                          </ext:TabPanel>                      
                       </Items>
           </ext:FormPanel>
            
            </Items>
       </ext:Viewport>
    </form>
    <ext:XScript ID="XScript1" runat="server">
        <script type="text/javascript">
           
       </script>
    </ext:XScript>     
</body>


</html>
